using QFramework.Framework.Util;
using UnityEditor;
using UnityEngine;

namespace QFramework.Example.Util._9.MonoSingleton
{
    public class MonoSingletonExample : MonoSingleton<MonoSingletonExample>
    {
#if UNITY_EDITOR
        [MenuItem("QFramework/Example/Util/9.MonoSingleton", false, 9)]
        private static void MenuClicked()
        {
            EditorApplication.isPlaying = true;
        }
#endif

        [RuntimeInitializeOnLoadMethod]
        private static void Example()
        {
            var initInstance = Instance;
            initInstance = Instance;
        }
    }
}